﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ApiClientTest
{
    class Program
    {
        static void Main(string[] args)
        {

            AMing.Api.Client.KeyValueHelper keyvalHelper = new AMing.Api.Client.KeyValueHelper();

            Class1 c1 = new Class1
            {
                Date = System.DateTime.Now,
                ID = Guid.NewGuid(),
                Test = "许你个,ttt安全速度tttt.ttttttasdasd"
            };

            string json = AMing.Helper.Net40.JsonHelper.Serialize(c1);


            var result = keyvalHelper.AddOrUpdate(new AMing.Api.Model.KeyValue
            {
                Key = "key.test.app1231231231s23",
                Value = json
            });
            //var result = keyvalHelper.Delete("key.app.test");


            //var data = keyvalHelper.Value<Class1>("key.test.app");
            //var list = keyvalHelper.List();
            //var result = keyvalHelper.AddOrUpdate(result);

            Console.Read();
        }
    }
}
